//
//  BaseSendData.h
//  BalanceCar
//
//  Created by 郑信鸿 on 2017/8/24.
//  Copyright © 2017年 郑信鸿. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "CarTravelModel.h"


typedef void(^CompleteBlock)(NSInteger code);

@interface BaseSendData : NSObject


@property(nonatomic, copy)CompleteBlock pwComplete;

@property(nonatomic, copy)CompleteBlock lockComplete;

@property(nonatomic, copy)CompleteBlock lightComplete;

@property(nonatomic, copy)CompleteBlock greesComplete;

@property(nonatomic, copy)CompleteBlock changePwComplete;

@property(nonatomic, copy)CompleteBlock assisComplete;

@property(nonatomic, copy)CompleteBlock navComplete;


+ (BaseSendData *)shareManager;

- (void)sendDefaultData;

- (NSData *)sendConnectPw:(Byte[])pw complete:(CompleteBlock)complete;//发送密码

- (NSData *)sendLockCarWithByte:(Byte)lock complete:(CompleteBlock)complete;//发送锁车命令1,0

+ (NSData *)sendTravelParamsOrder;//发送获取行车参数命令

- (NSData *)sendCarLightWithByte:(Byte)lightState complete:(CompleteBlock)complete;//发送大灯命令

- (NSData *)sendGearsWithByte:(Byte)gears complete:(CompleteBlock)complete;//档位

- (NSData *)sendIsAssistance:(BOOL)isAssistance complete:(CompleteBlock)complete;//发送是否助力

- (NSData *)sendIsNavigate:(BOOL)isNavigate complete:(CompleteBlock)complete;//发送是否巡航


+ (NSData *)sendConnectPw:(Byte[])pw;//发送密码

+ (NSData *)sendChangePasswordWithByte:(Byte[])password;

@end
